<template>
  <div>
    <div>

        <van-form @submit="onSubmit">
        <van-field
            v-model="money"
            type="money"
            name="金额"
            label="金额"
        />
        <div style="margin: 16px;">
            <van-button round block type="info" native-type="submit" >提交</van-button>
        </div>
        </van-form>
    </div>
   <footer-1></footer-1>
  </div>
</template>

<script>
import {get,post} from '../utils/request'

export default {
  data(){
    return{
        ctype:1,
        money:0,
        vlist:[]
    }
  },components:{
     
    },
  methods:{
    onSubmit(){
        post('http://127.0.0.1:8000/user/set_vip',{'userid':1,'type':this.ctype})
        .then(resp=>{
           if(resp.data.code==200){
            window.location.href=resp.data.url
           }
        })
    },

    skip(){

    }
  },
  mounted(){

  }

}
</script>

<style>

</style>



